package com.yehui.spring.jvm;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.io.IOException;

/**
 * @author 业徽
 * @date 2021/6/28
 */
public class MBeanDemo {

    public static void main(String[] args) throws IOException {

        // 设置了名称才能有 MBean. org.springframework.context.support.LiveBeansView
        // 用 jconsole 查看
        System.setProperty("spring.liveBeansView.mbeanDomain", "spring-test");
        final AnnotationConfigApplicationContext applicationContext =
                new AnnotationConfigApplicationContext();

        System.in.read();


    }

}
